<?php

namespace YouBaoLian\Application\Request;

use YouBaoLian\Application\Response\VehicleUploadImgResponse;

class VehicleUploadImgRequest extends Request
{
    private $configId;

    private $priceItemId;

    private $data = [];

    protected $method = 'iebcVehicle.uploadImg';

    protected $response = VehicleUploadImgResponse::class;

    public function getBizContent(): array
    {
        return [
            'configId' => $this->configId,
            'priceItemId' => $this->priceItemId,
            'data' => $this->data
        ];
    }

    public function append($kindType, $imgBase64)
    {
        $this->data[] = [
            'kindType' => $kindType,
            'imgBase64' => $imgBase64,
        ];
    }

    /**
     * @param mixed $configId
     */
    public function setConfigId($configId): void
    {
        $this->configId = $configId;
    }

    /**
     * @param mixed $priceItemId
     */
    public function setPriceItemId($priceItemId): void
    {
        $this->priceItemId = $priceItemId;
    }


}
